home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / bash-completion / contrib / sbcl < prev    next >
Encoding:
Text File  |  2009-01-21  |  651 b   |  25 lines

  1. # bash programmable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3. #
  4. # $Id: sbcl,v 1.2 2004/03/30 23:05:45 ianmacd Exp $
  5.  
  6. _sbcl()
  7. {
  8.     local cur
  9.  
  10.     COMPREPLY=()
  11.     cur=`_get_cword`
  12.  
  13.     # completing an option (may or may not be separated by a space)
  14.     if [[ "$cur" == -* ]]; then
  15.     COMPREPLY=( $( compgen -W '--core --noinform --help --version \
  16.                      --sysinit --userinit --eval --noprint --disable-debugger \
  17.                      --end-runtime-options --end-toplevel-options ' -- $cur ) )
  18.     else
  19.     _filedir
  20.     fi
  21.  
  22.     return 0
  23. }
  24. complete -F _sbcl -o default sbcl sbcl-mt
  25.